home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / oper_sys / emerald / emrldsys.lha / Language / Compiler / assert.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-08-16  |  243 b   |  20 lines

  1. /*
  2.  * @(#)assert.c    1.2  3/18/87
  3.  */
  4. char assertMessage[] = "Assertion failed: file %s, line %d\n";
  5. #include <stdio.h>
  6.  
  7. #ifdef vax
  8. void _flushall()
  9. {
  10.   extern int fflush();
  11.   _fwalk(fflush);
  12. }
  13.  
  14. abort()
  15. {
  16.   _flushall();
  17.   asm("    halt");
  18. }
  19. #endif
  20.